/**
 * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
 */

CKEDITOR.editorConfig = function( config ) {
	config.toolbarGroups = [
		{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
		{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
		{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
		{ name: 'forms', groups: [ 'forms' ] },
		'/',
		{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
		{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
		{ name: 'links', groups: [ 'links' ] },
		{ name: 'insert', groups: [ 'insert' ] },
		'/',
		{ name: 'styles', groups: [ 'styles' ] },
		{ name: 'colors', groups: [ 'colors' ] },
		{ name: 'tools', groups: [ 'tools' ] },
		{ name: 'others', groups: [ 'others' ] },
		{ name: 'about', groups: [ 'about' ] }
	];

	config.removeButtons = 'About,Language,BidiRtl,BidiLtr,Flash,Link';
	config.language = 'zh-cn';
	// config.uiColor = '#009688';
	config.skins = 'moono-lisa';
	config.height = 400;
	//是否允许关闭工具栏
	config.toolbarCanCollapse = true;
	//去掉弹框的图像高级选项卡和链接的高级选项卡
	config.removeDialogTabs = 'image:advanced;link:advanced';
	//去掉图片预览框的文字
	config.image_previewText = ' ';
	//文件浏览上传接口
	config.filebrowserImageUploadUrl = '/manage/upload/';
	//图片上传接口
    config.imageUploadUrl='/manage/upload/';
};
